<!DOCTYPE html>
<html>
<head>
	<title></title>
	<meta charset="utf8">
</head>
<body>
	<button disabled=false id="btn" >同意 10</button>
</body>
<script>
	var num=10;

	var btn = document.getElementById("btn");

	var timer = setInterval(doTime,1000);

	function doTime()
	{
		btn.innerHTML="同意 "+num;

		num--;

		if(num<=0)
		{
			btn.innerHTML="同意";

			btn.disabled=false;

			console.log(btn);

			clearInterval(timer);
		}
	}
</script>
</html>